package com.hsgene.order.service.api;

import com.hsgene.common.util.result.ApiResult;
import com.hsgene.order.service.api.impl.SupplierDetectionServiceImpl;
import com.hsgene.supplier.domain.DetectionOrganization;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @desc:供应商服务
 * @author: fuxiang
 * @date: 2018/8/8 11:46
 */
@FeignClient(value = "ms-mod-supplier", path = "/supplier_detection", fallback = SupplierDetectionServiceImpl.class)
public interface SupplierDetectionService {
    /**
     * 查询指定的检测机构信息
     *
     * @param supplierId 检测机构id
     * @return 检测机构信息
     */
    @GetMapping("{supplier_id}")
    ApiResult<DetectionOrganization> findOrganization(@PathVariable("supplier_id") Long supplierId);
}
